package com.yan.pojo4;

import com.yan.pojo3.Host;
import com.yan.pojo3.Rent;

public class Client {
    public static void main(String[] args) {
        Host host = new Host();

        ProxyInvocationhandler ins = new ProxyInvocationhandler();
        ins.setTarger(host);
        Rent proxy = (Rent) ins.getProxy();
proxy.add();

    }


}
